import { createAsyncThunk } from '@reduxjs/toolkit';
import type { ThemesType } from '../../types/themes';
import ThemesService from '../../services/themesServices';

const getAllThemesThunk = createAsyncThunk<ThemesType[]>('themes/getAllThemesThunk', () =>
  ThemesService.getAllTheme(),
);

export default getAllThemesThunk;
